import { GaRegExp, ruleInject, ruleInjectable } from "../InjectionRule";
import { blankRemove } from "../methods/blank-remove";

@ruleInjectable()
export default class exportRule extends GaRegExp {

	@ruleInject() private exportValueRule!: GaRegExp;

	public RuleInit() {
		this.ParseRule([
			"export", "\\s", this.Supply("EXPORT"), blankRemove, "(", "(!", "default", ")", "\\s", blankRemove, ")?", this.exportValueRule,
		]);
	}

}
